package com.sumer.psychology.comment.application.command;

import com.sumer.psychology.common.domain.model.Author;
import com.sumer.psychology.common.port.adapter.service.AuthorCommand;

/**
 * 创建评论
 * <p/>
 * User: zhenguang.zhu
 * Date: 2014/8/13
 * Time: 16:17
 */
public class CreateCommentCommand implements AuthorCommand {
    private String referenceId;
    private String content;
    private Author author;
    private String commentType;
    private Integer score;
    private Author object;

    public CreateCommentCommand(String referenceId, String content, Author author, String commentType, Integer score, Author object) {
        this.referenceId = referenceId;
        this.content = content;
        this.author = author;
        this.commentType = commentType;
        this.score = score;
        this.object = object;
    }

    public String referenceId() {
        return referenceId;
    }

    public String content() {
        return content;
    }

    @Override
    public void setAuthor(Author author) {
        this.author = author;
    }

    @Override
    public Author author() {
        return author;
    }

    public String commentType() {
        return commentType;
    }

    public Integer score() {
        return score;
    }

    public Author object() {
        return object;
    }
}
